﻿using System;
using ExtensionHelper;

namespace Expression
{
    using Interface;
    /// <summary>
    /// 
    /// </summary>
    public class ArgDateTime : ArgBase 
    {

        /// <summary>
        /// 
        /// </summary>
        public new DateTime Value { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public override void Converter(IArg arg,IAlgorithmBehaviours exp)
        {
            this.Name = arg.Name;
            this.Value = arg.Value.ToString().ToDateTime(DateTime.Now);
            exp.AddParameters(this.Name,this.Value); 
        } 
    }

}
